Einhugur macOS Bridge plugin.

NSAlert.AddButtonWithTitle Method

Adds a button with a given title to the alert.

AddButtonWithTitle(
   title as String) as EinhugurMacOSBridge.NSButton

Parameters

title
Title of the button to add to the alert.

Returns

EinhugurMacOSBridge.NSButton
New instance of NSButton.

Remarks

By default, the first button has a key equivalent of Return, any button with a title of “Cancel” has a key equivalent of Escape, and any button with the title “Don’t Save” has a key equivalent of Command-D (but only if it’s not the first button).

See Also

NSAlert Class